{extend name='public/base' /}
{block name='title'}{$title}{/block}
{block name='main'}
<div class="layui-body custom-top">
    <fieldset class="layui-elem-field layui-field-title">
        <legend class="custom-legend">{$title}</legend>
        <div class="layui-main">
            <div class="layui-btn-group custom-top">
                <button data-method="add" class="layui-btn">新增</button>
            </div>
            <div class="layui-field-box table-responsive">
                <table class="table table-bordered table-hover table-condensed">
                    <colgroup>
                        <col width="160">
                        <col width="200">
                        <col width="80">
                        <col width="10">
                    </colgroup>
                    <thead>
                    <tr>
                        <th class="layui-hide">序号</th>
                        <th>标题</th>
                        <th>排序</th>
                        <th>备注</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                        {volist name='list' id='vo'}
                        <tr>
                            <td class="layui-hide">{$vo.module_id}</td>
                            <td>{$vo.name}</td>
                            <td>{$vo.order}</td>
                            <td>{$vo.remark}</td>
                            <td>
                                <div class="layui-btn-group">
                                    <button data-method="module-add" class="layui-btn layui-btn-primary layui-btn-small">
                                        <i class="layui-icon">&#xe654;</i>
                                    </button>
                                    <button data-method="module-edit" data-module-id="{$vo.module_id}" class="layui-btn layui-btn-primary layui-btn-small">
                                        <i class="layui-icon">&#xe642;</i>
                                    </button>
                                    <button data-method="module-delete" data-module-id="{$vo.module_id}" class="layui-btn layui-btn-primary layui-btn-small">
                                        <i class="layui-icon">&#xe640;</i>
                                    </button>
                                </div>
                            </td>
                        </tr>
                        {volist name='vo.child' id='menu'}
                        <tr>
                            <td class="layui-hide">{$menu.module_id}</td>
                            <td><span>|----</span>{$menu.name}</td>
                            <td>{$menu.order}</td>
                            <td>{$menu.remark}</td>
                            <td>
                                <div class="layui-btn-group">
                                    <button class="layui-btn layui-btn-primary layui-btn-small">
                                        <i class="layui-icon">&#xe654;</i>
                                    </button>
                                    <button data-method="module-edit" data-module-id="{$menu.module_id}" class="layui-btn layui-btn-primary layui-btn-small">
                                        <i class="layui-icon">&#xe642;</i>
                                    </button>
                                    <button class="layui-btn layui-btn-primary layui-btn-small">
                                        <i class="layui-icon">&#xe640;</i>
                                    </button>
                                </div>
                            </td>
                        </tr>
                        {/volist}
                        {/volist}
                    </tbody>
                </table>
            </div>
        </div>
    </fieldset>
</div>
{/block}